﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class getArea
    {
        public void CountArea(int bian)
        {
            Console.WriteLine("圆的面积为：{0}", bian * bian * 3.14);
            Console.ReadKey();
        }
        public void CountArea(int chang, int kuang)
        {
            Console.WriteLine("长方形的面积为：{0}", chang * kuang);
            Console.ReadKey();
        }
    }
}
